#include<bits/stdc++.h>
using namespace std;


int main()
{
	int res=1;
	for(int yy=2000; yy<2000000; yy++)
	{
		for(int mm=1; mm<=12; mm++)
		{
			if(yy%mm == 0)
			{
				int dd[13]= {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
				if((yy%4==0 && yy%100!=0) || yy%400==0)
					dd[2] = 29;
				else
					dd[2] = 28;
				for(int d=1; d<=dd[mm]; d++)
				{
					if(yy%d==0)
						res++;
				}
			}
		}
	}
	cout << res << endl;
	
	return 0;
}